/*
 * Copyright (c) 2021
 * User:mallplus多商户商城
 * File:OmsBillingRecordsServiceImpl.java
 * Date:2021/01/12 19:29:12
 */

package com.qyine.rlmall.oms.service.impl;

import com.qyine.rlmall.oms.service.IOmsBillingRecordsService;
import com.qyine.rlmall.oms.entity.OmsBillingRecords;
import com.qyine.rlmall.oms.mapper.OmsBillingRecordsMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qyine.rlmall.oms.vo.StoreBilling;
import org.apache.commons.lang.ArrayUtils;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Arrays;
import java.util.List;
import java.util.Map;

/**
* @author mallplus
* @date 2020-11-11
*/
@Service
public class OmsBillingRecordsServiceImpl extends ServiceImpl<OmsBillingRecordsMapper, OmsBillingRecords> implements IOmsBillingRecordsService {

@Resource
private  OmsBillingRecordsMapper omsBillingRecordsMapper;

    @Override
    public  List<StoreBilling> queryStoreBillings(Map<String, Object> params){
        return omsBillingRecordsMapper.queryStoreBillings(params);
    }

    @Override
    public int updateStatus(Long[] ids) {

        if (ArrayUtils.isEmpty(ids)) {
            return 0;
        }

        return omsBillingRecordsMapper.updateStatus(Arrays.asList(ids));
    }


}
